//
//  ListCell.m
//  谈诗说词
//
//  Created by dllo on 15/6/11.
//  Copyright (c) 2015年 lanou3g.com蓝鸥科技. All rights reserved.
//

#import "ListCell.h"
#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
@implementation ListCell

- (void)awakeFromNib {
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}

- (void)createCell
{
//    UIImageView *top = [[UIImageView alloc]initWithFrame:CGRectMake(0.02 * WIDTH, 0, WIDTH - 0.04 * WIDTH, 0.03 * WIDTH)];
//    [top setImage:[UIImage imageNamed:@"上边框.png"]];
//    [self.contentView addSubview:top];
//    
//    UIImageView *bottom = [[UIImageView alloc]initWithFrame:CGRectMake(0.02 * WIDTH, self.contentView.frame.size.height+0.08 * WIDTH , WIDTH - 0.04 * WIDTH, 0.03 * WIDTH)];
//    [bottom setImage:[UIImage imageNamed:@"下边框.png"]];
//    [self.contentView addSubview:bottom];
    
    self.title = [[UILabel alloc]initWithFrame:CGRectMake(0.07 * WIDTH, 0.03 * WIDTH, 0.86 * WIDTH, 0.13 * WIDTH)];
    self.title.font = [UIFont fontWithName:@"-" size:23];
    self.title.textColor = [UIColor blackColor];
    [self.contentView addSubview:self.title];
    
    self.author = [[UILabel alloc]initWithFrame:CGRectMake(0.07 * WIDTH, 0.135 * WIDTH, 0.86 * WIDTH, 0.07 * WIDTH)];
    self.author.font = [UIFont fontWithName:@"-" size:17];
    self.author.textColor = [UIColor blackColor];
    [self.contentView addSubview:self.author];
    
    
    self.pome = [[UILabel alloc]init];
    self.pome.font = [UIFont fontWithName:@"X-" size:20];
    self.pome.textColor = [UIColor blackColor];
    [self.contentView addSubview:self.pome];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}

@end
